package com.yc.psychologicalconsultant;

import com.yc.psychologicalconsultant.ws.impl.WebSocketServiceImpl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan("com.yc.psychologicalconsultant.dao")
public class PsychologicalConsultantApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(PsychologicalConsultantApplication.class, args);
        WebSocketServiceImpl.setApplicationContext(configurableApplicationContext);
    }

}
